﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Net;
using System.Web.Script.Serialization;
using Newtonsoft.Json.Linq;

namespace GIO.jsonParser
{
    public class jSonArrayParser
    {
        public JObject pidoServicio(String url)
        {
            String urlFormat = String.Format(url);
            WebClient serviceRequest = new WebClient();
            string response = serviceRequest.DownloadString(new Uri(url));
            JObject o = JObject.Parse(response);
            /*JArray array = (JArray)o["data"];
            JObject json = (JObject)array[0];
            String name = (String)json["titulo"];*/
            return o;
        }
    }
}